<?php
ob_start();
include("databaseconnection.php");
include("header.php");
?>

<?php
include("config.php");
?>
<form id="form1" name="form1" method="post" action="userregoffi.php?action=save" >
  <table width="600" cellspacing="0" cellpadding="0">
    
    
    <tr>
      <td width="199">Office Email</td>
      <td width="399"><input type="text" name="office_email" size="30"  /></td>
    </tr>
    
    <tr>
    <td>Office Address</td>
      <td><input type="text" name="office_address" size="30"/></td>
    </tr>
    

    
    <tr>
      <td>Office Phone Number</td>
      <td><input type="text" name="office_phone_number" size="30" /></td>
    </tr>
    
    
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
    
  </table>

</form>
<?php
if($_GET['action']== "save")
{
	$g_office_email=$_POST['office_email'];
	$g_office_address=$_POST['office_address'];
	$g_office_phone_number=$_POST['office_phone_number'];
	
	
		
		mysql_query("INSERT INTO participant   (OFFICE_EMAIL,OFFICE_ADDRSS,OFFICE_PHONE_NUMBER) VALUES('$g_office_email','$g_office_address','$g_office_phone_number') ") or die(mysql_error());
		
		echo "registed";
		//session_start();
		//	$_SESSION['user']=$name;
			//$_SESSION['userid']=$row['ID'];
		//	header("location:http://www.facebook.com ");
		//	exit;
	}
	
?>

<?php
include("fooder.php");
	
?>